package com.example.myfirst.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 订单表(Orders)表实体类
 *
 * @author makejava
 * @since 2023-12-16 23:06:25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Orders extends Model<Orders> implements Serializable {
    //订单编号
    private String orderId;
    //购买的商品数据
    private String goods;
    //购买用户id
    private Integer userId;
    //订单总价格
    private Double totalPrice;
    //订单创建时间
    private String createTime;
    //添加临时属性
    @TableField(exist = false)
    private List<ShopCart> list;
}

